package 接口名作为形参和返回值;

public class JumppingDemo {
    public static void main(String[] args) {
        //创建操作类对象
        JumppingOperator jo=new JumppingOperator();
        Jumpping j=new Cat();
        jo.useJumpping(j);

        Jumpping jo2 = jo.getJumpping();//new Cat()
        jo2.jump();
    }
}
